package com.huangfuyi.process.actuator.monitor;

import com.huangfuyi.process.entity.monitor.EPMonitorInfo;

public class EPMonitorThread<T> extends Thread{

    // 监控线程的运行信息
    private final EPMonitorInfo<T> monitorInfo = new EPMonitorInfo<>();

    // 线程销毁标记
    private volatile boolean destruction = false;

    public EPMonitorInfo<T> getMonitorInfo() {
        return monitorInfo;
    }

    public boolean isDestruction() {
        return destruction;
    }

    public void setDestruction(boolean destruction) {
        this.destruction = destruction;
    }

    public EPMonitorThread(String name) {
        super(name);
    }
}
